'use strict';

const { validatorSensitive } = require('../common/index');

module.exports = {
  title: [
    { required: true, message: '标题必填' },
    { type: 'string', message: '标题必须为字符串' },
    { min: 0, max: 50, message: '标题长度最大20字' },
    { validator: validatorSensitive() },
  ],
  content: [
    { required: true, message: '论坛内容必填' },
    { type: 'string', message: '论坛内容为字符串' },
    { min: 0, max: 1000, message: '论坛内容最大1000字' },
    { validator: validatorSensitive() },
  ],
  houseId: [
    { type: 'number', message: '参数不规范' },
  ],
};
